
<?php
$db=isset($database)?($database?';dname='.$database:''):';dbname=sitegeist';
//$db='sitegeist';
//echo'*connecting to db: '.$db.'xx*';
$host='localhost';
$port='3307';
$dbu='root';
$dbp='usbw';
$db=new PDO("mysql:host=$host;port=$port$db",$dbu,$dbp,array(
	PDO::MYSQL_ATTR_INIT_COMMAND=>"SET NAMES utf8" 
));
$db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
//$db->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY:: ?? );
?>
